package com.yunbiji.demo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * (CnActivity)实体类
 *
 * @author makejava
 * @since 2021-06-07 12:53:49
 */
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class CnActivity implements Serializable {
    private static final long serialVersionUID = 216297206597199274L;
    /**
     * 活动ID
     */
    private Integer cnActivityId;
    /**
     * 活动标题
     */
    private String cnActivityTitle;
    /**
     * 活动介绍(html片段)
     */
    private String cnActivityBody;
    /**
     * 活动结束时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date cnActivityEndTime;


    public Integer getCnActivityId() {
        return cnActivityId;
    }

    public void setCnActivityId(Integer cnActivityId) {
        this.cnActivityId = cnActivityId;
    }

    public String getCnActivityTitle() {
        return cnActivityTitle;
    }

    public void setCnActivityTitle(String cnActivityTitle) {
        this.cnActivityTitle = cnActivityTitle;
    }

    public String getCnActivityBody() {
        return cnActivityBody;
    }

    public void setCnActivityBody(String cnActivityBody) {
        this.cnActivityBody = cnActivityBody;
    }

    public Date getCnActivityEndTime() {
        return cnActivityEndTime;
    }

    public void setCnActivityEndTime(Date cnActivityEndTime) {
        this.cnActivityEndTime = cnActivityEndTime;
    }

    @Override
    public String toString() {
        return "CnActivity{" +
                "cnActivityId='" + cnActivityId + '\'' +
                ", cnActivityTitle='" + cnActivityTitle + '\'' +
                ", cnActivityBody='" + cnActivityBody + '\'' +
                ", cnActivityEndTime=" + cnActivityEndTime +
                '}';
    }
}